package com.xianbeiying.app.ckgl.data;

/**
 * Created by yangjie on 16/9/24.
 */
public class DateStatus {
    private long startTime;

    private long endTime;

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public boolean isRunning()
    {
        long currentTime = System.currentTimeMillis();
        if (currentTime >= startTime && currentTime < endTime)
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public long getDistanceByStartTime()
    {
        long currentTime = System.currentTimeMillis();
        return startTime - currentTime;
    }

}
